package cn.seaboot.html.table;

import java.awt.*;

/**
 * 单元格字体
 * <p>
 * 转换成 html 的时候，推荐将这些内容，转换成 css 样式
 *
 * @author Mr.css
 * @version 2025-06-25 18:04
 */
public class TableFont {

    /**
     * 字体 ID
     */
    private int index;
    /**
     * 文本颜色
     */
    private Color color;
    /**
     * 字体大小
     */
    private int fontSize;
    /**
     * 字体粗细
     */
    private String fontWeight;
    /**
     * 字体名称
     */
    private String fontFamily;


    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public Color getColor() {
        return color;
    }

    public void setColor(Color color) {
        this.color = color;
    }

    public int getFontSize() {
        return fontSize;
    }

    public void setFontSize(int fontSize) {
        this.fontSize = fontSize;
    }

    public String getFontWeight() {
        return fontWeight;
    }

    public void setFontWeight(String fontWeight) {
        this.fontWeight = fontWeight;
    }

    public String getFontFamily() {
        return fontFamily;
    }

    public void setFontFamily(String fontFamily) {
        this.fontFamily = fontFamily;
    }

    @Override
    public String toString() {
        return "TableFont{" +
                "index=" + index +
                ", color=" + color +
                ", fontSize=" + fontSize +
                ", fontWeight='" + fontWeight + '\'' +
                ", fontFamily='" + fontFamily + '\'' +
                '}';
    }
}
